#ifndef HTTPPOSTPROBE_H
#define HTTPPOSTPROBE_H

#include <QtGui>
#include <QDialog>
#include <QAbstractButton>
#include <QPlainTextEdit>

#include <QtNetwork>
#include <QNetworkAccessManager>
#include "t_http/t_http.h"

namespace Ui {
    class httpPostProbe;
}

class httpPostProbe : public QDialog {
    Q_OBJECT
public:
    httpPostProbe(QWidget *parent = 0);
    ~httpPostProbe();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::httpPostProbe *ui;

    QLineEdit *urlLineEdit;
    QLineEdit *argLineEdit;
    QLineEdit *pathLineEdit;
    QPlainTextEdit *retTextEdit;

    int advSetupUi();

//    QNetworkAccessManager *manager;
//    QNetworkRequest *request;
//    QNetworkReply *reply;

    t_http *httpObj;

private slots:
    void on_pushButton_clicked(bool checked);

    void replyFinished();
    void slotError();

};

#endif // HTTPPOSTPROBE_H
